home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0159 / vb.zip / SEMARKS.FRM < prev    next >
Text File  |  1995-12-30  |  17KB  |  541 lines

  1. VERSION 2.00
  2. Begin Form MarkDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Mark Demo"
  6.    ClientHeight    =   4305
  7.    ClientLeft      =   1215
  8.    ClientTop       =   1965
  9.    ClientWidth     =   8340
  10.    Height          =   4710
  11.    Left            =   1155
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4305
  17.    ScaleWidth      =   8340
  18.    Top             =   1620
  19.    Width           =   8460
  20.    Begin Frame Frame1 
  21.       BackColor       =   &H00C0C0C0&
  22.       Caption         =   "KnobStyle"
  23.       FontBold        =   0   'False
  24.       FontItalic      =   0   'False
  25.       FontName        =   "MS Sans Serif"
  26.       FontSize        =   8.25
  27.       FontStrikethru  =   0   'False
  28.       FontUnderline   =   0   'False
  29.       Height          =   1425
  30.       Left            =   6480
  31.       TabIndex        =   31
  32.       Top             =   120
  33.       Width           =   1605
  34.       Begin OptionButton Option2 
  35.          BackColor       =   &H00C0C0C0&
  36.          Caption         =   "Circle"
  37.          Height          =   225
  38.          Index           =   0
  39.          Left            =   210
  40.          TabIndex        =   35
  41.          Top             =   270
  42.          Width           =   1125
  43.       End
  44.       Begin OptionButton Option2 
  45.          BackColor       =   &H00C0C0C0&
  46.          Caption         =   "Pointer"
  47.          Height          =   225
  48.          Index           =   1
  49.          Left            =   210
  50.          TabIndex        =   34
  51.          Top             =   540
  52.          Width           =   1095
  53.       End
  54.       Begin OptionButton Option2 
  55.          BackColor       =   &H00C0C0C0&
  56.          Caption         =   "Complex"
  57.          Height          =   225
  58.          Index           =   2
  59.          Left            =   210
  60.          TabIndex        =   33
  61.          Top             =   810
  62.          Width           =   1005
  63.       End
  64.       Begin OptionButton Option2 
  65.          BackColor       =   &H00C0C0C0&
  66.          Caption         =   "User"
  67.          Height          =   225
  68.          Index           =   3
  69.          Left            =   210
  70.          TabIndex        =   32
  71.          Top             =   1080
  72.          Width           =   1005
  73.       End
  74.    End
  75.    Begin HScrollBar HScroll1 
  76.       Height          =   240
  77.       Index           =   2
  78.       Left            =   5040
  79.       Max             =   100
  80.       TabIndex        =   1
  81.       Top             =   2280
  82.       Width           =   2715
  83.    End
  84.    Begin HScrollBar HScroll1 
  85.       Height          =   240
  86.       Index           =   1
  87.       Left            =   5040
  88.       Max             =   100
  89.       TabIndex        =   6
  90.       Top             =   1980
  91.       Width           =   2715
  92.    End
  93.    Begin SELECTOR Selector1 
  94.       Angle           =   210
  95.       AutoAlign       =   -1  'True
  96.       AutoAngle       =   -1  'True
  97.       AutoAngleConfine=   0   'False
  98.       AutoOffset      =   -1  'True
  99.       AutoOffsetDistance=   0
  100.       AutoOffsetStyle =   0  ' 0 - Circular 
  101.       AutoRadius      =   0.8
  102.       AutoStartAngle  =   210
  103.       AutoStopAngle   =   330
  104.       AVersion        =   0
  105.       BackgroundColor =   &H00C0C0C0&
  106.       BevelInner      =   1  ' 1 - Raised
  107.       BevelOuter      =   2  ' 2 - Inset
  108.       BevelWidth      =   2
  109.       BorderType      =   1  ' 1 - Bevel
  110.       BorderWidth     =   2
  111.       FontID          =   0
  112.       FrameColor      =   &H00000000&
  113.       FrameScaleX     =   0
  114.       FrameScaleY     =   0
  115.       FrameStyle      =   0  ' 0 - None
  116.       Height          =   3825
  117.       Highlight       =   0   'False
  118.       HighlightColor  =   &H00000000&
  119.       KnobColor       =   &H00808080&
  120.       KnobOriginX     =   0
  121.       KnobOriginY     =   0
  122.       KnobRadius      =   0.6
  123.       KnobStyle       =   0  ' 0 - Cicular
  124.       KnobUserDefined =   "0,1000,  200,800,  150,700,  500,-600,  0,-500,  -500,-600,  -150,700,  -200,800"
  125.       Left            =   120
  126.       LineDisplay     =   0   'False
  127.       LineInnerRadius =   0.4
  128.       LineThickness   =   1
  129.       MarkUserDefined =   "0,0,   0,1000,   500,700,   200,700,   200,0"
  130.       MouseControl    =   -1  'True
  131.       OutlineAlign    =   0  ' 0 - Left 
  132.       OutlineColor    =   &H00000000&
  133.       OutlineTitle    =   ""
  134.       OutlineWidth    =   0
  135.       Radius          =   0
  136.       TabIndex        =   29
  137.       Top             =   210
  138.       Value           =   0
  139.       Width           =   3495
  140.       XScale          =   0
  141.       YScale          =   0
  142.       ZLoad           =   SEMARKS.FRX:0000
  143.    End
  144.    Begin TextBox Text1 
  145.       Height          =   1125
  146.       Left            =   3840
  147.       MultiLine       =   -1  'True
  148.       TabIndex        =   3
  149.       Top             =   2910
  150.       Width           =   4215
  151.    End
  152.    Begin Frame Frame3 
  153.       BackColor       =   &H00C0C0C0&
  154.       Caption         =   "MarkColor"
  155.       FontBold        =   0   'False
  156.       FontItalic      =   0   'False
  157.       FontName        =   "MS Sans Serif"
  158.       FontSize        =   8.25
  159.       FontStrikethru  =   0   'False
  160.       FontUnderline   =   0   'False
  161.       Height          =   1425
  162.       Left            =   5220
  163.       TabIndex        =   22
  164.       Top             =   120
  165.       Width           =   1215
  166.       Begin Label Colors 
  167.          BackColor       =   &H000080FF&
  168.          Height          =   225
  169.          Index           =   8
  170.          Left            =   270
  171.          TabIndex        =   4
  172.          Top             =   900
  173.          Width           =   225
  174.       End
  175.       Begin Label Colors 
  176.          BackColor       =   &H00FF00FF&
  177.          Height          =   225
  178.          Index           =   7
  179.          Left            =   750
  180.          TabIndex        =   9
  181.          Top             =   900
  182.          Width           =   225
  183.       End
  184.       Begin Label Colors 
  185.          BackColor       =   &H00FF0000&
  186.          Height          =   225
  187.          Index           =   6
  188.          Left            =   270
  189.          TabIndex        =   10
  190.          Top             =   660
  191.          Width           =   225
  192.       End
  193.       Begin Label Colors 
  194.          BackColor       =   &H0000FFFF&
  195.          Height          =   225
  196.          Index           =   5
  197.          Left            =   510
  198.          TabIndex        =   11
  199.          Top             =   900
  200.          Width           =   225
  201.       End
  202.       Begin Label Colors 
  203.          BackColor       =   &H0000FF00&
  204.          Height          =   225
  205.          Index           =   4
  206.          Left            =   750
  207.          TabIndex        =   12
  208.          Top             =   420
  209.          Width           =   225
  210.       End
  211.       Begin Label Colors 
  212.          BackColor       =   &H000000FF&
  213.          Height          =   225
  214.          Index           =   3
  215.          Left            =   750
  216.          TabIndex        =   13
  217.          Top             =   660
  218.          Width           =   225
  219.       End
  220.       Begin Label Colors 
  221.          BackColor       =   &H00FFFFFF&
  222.          Height          =   225
  223.          Index           =   2
  224.          Left            =   510
  225.          TabIndex        =   14
  226.          Top             =   420
  227.          Width           =   225
  228.       End
  229.       Begin Label Colors 
  230.          BackColor       =   &H00808080&
  231.          Height          =   225
  232.          Index           =   1
  233.          Left            =   510
  234.          TabIndex        =   15
  235.          Top             =   660
  236.          Width           =   225
  237.       End
  238.       Begin Label Colors 
  239.          BackColor       =   &H00000000&
  240.          Height          =   225
  241.          Index           =   0
  242.          Left            =   270
  243.          TabIndex        =   16
  244.          Top             =   420
  245.          Width           =   225
  246.       End
  247.    End
  248.    Begin Frame Frame2 
  249.       BackColor       =   &H00C0C0C0&
  250.       Caption         =   "MarkStyle"
  251.       FontBold        =   0   'False
  252.       FontItalic      =   0   'False
  253.       FontName        =   "MS Sans Serif"
  254.       FontSize        =   8.25
  255.       FontStrikethru  =   0   'False
  256.       FontUnderline   =   0   'False
  257.       Height          =   1425
  258.       Left            =   3810
  259.       TabIndex        =   17
  260.       Top             =   120
  261.       Width           =   1365
  262.       Begin OptionButton Option1 
  263.          BackColor       =   &H00C0C0C0&
  264.          Caption         =   "User"
  265.          Height          =   225
  266.          Index           =   4
  267.          Left            =   90
  268.          TabIndex        =   20
  269.          Top             =   1110
  270.          Width           =   1005
  271.       End
  272.       Begin OptionButton Option1 
  273.          BackColor       =   &H00C0C0C0&
  274.          Caption         =   "Arrow"
  275.          Height          =   225
  276.          Index           =   3
  277.          Left            =   90
  278.          TabIndex        =   24
  279.          Top             =   900
  280.          Width           =   1005
  281.       End
  282.       Begin OptionButton Option1 
  283.          BackColor       =   &H00C0C0C0&
  284.          Caption         =   "Triangular"
  285.          Height          =   225
  286.          Index           =   2
  287.          Left            =   90
  288.          TabIndex        =   8
  289.          Top             =   690
  290.          Width           =   1215
  291.       End
  292.       Begin OptionButton Option1 
  293.          BackColor       =   &H00C0C0C0&
  294.          Caption         =   "Circular"
  295.          Height          =   225
  296.          Index           =   1
  297.          Left            =   90
  298.          TabIndex        =   19
  299.          Top             =   480
  300.          Width           =   1095
  301.       End
  302.       Begin OptionButton Option1 
  303.          BackColor       =   &H00C0C0C0&
  304.          Caption         =   "None"
  305.          Height          =   225
  306.          Index           =   0
  307.          Left            =   90
  308.          TabIndex        =   18
  309.          Top             =   270
  310.          Width           =   1125
  311.       End
  312.    End
  313.    Begin HScrollBar HScroll1 
  314.       Height          =   240
  315.       Index           =   0
  316.       Left            =   5040
  317.       Max             =   100
  318.       TabIndex        =   0
  319.       Top             =   1680
  320.       Width           =   2715
  321.    End
  322.    Begin Label Label2 
  323.       Alignment       =   2  'Center
  324.       AutoSize        =   -1  'True
  325.       BackStyle       =   0  'Transparent
  326.       Caption         =   " "
  327.       Height          =   195
  328.       Index           =   2
  329.       Left            =   7800
  330.       TabIndex        =   7
  331.       Top             =   2280
  332.       Width           =   450
  333.    End
  334.    Begin Label Label1 
  335.       Alignment       =   1  'Right Justify
  336.       AutoSize        =   -1  'True
  337.       BackStyle       =   0  'Transparent
  338.       Caption         =   "MarkWidth:"
  339.       FontBold        =   0   'False
  340.       FontItalic      =   0   'False
  341.       FontName        =   "MS Sans Serif"
  342.       FontSize        =   8.25
  343.       FontStrikethru  =   0   'False
  344.       FontUnderline   =   0   'False
  345.       Height          =   195
  346.       Index           =   2
  347.       Left            =   4215
  348.       TabIndex        =   23
  349.       Top             =   2280
  350.       Width           =   825
  351.    End
  352.    Begin Label Label2 
  353.       Alignment       =   2  'Center
  354.       AutoSize        =   -1  'True
  355.       BackStyle       =   0  'Transparent
  356.       Caption         =   " "
  357.       Height          =   195
  358.       Index           =   1
  359.       Left            =   7800
  360.       TabIndex        =   28
  361.       Top             =   1980
  362.       Width           =   450
  363.    End
  364.    Begin Label Label1 
  365.       Alignment       =   1  'Right Justify
  366.       AutoSize        =   -1  'True
  367.       BackStyle       =   0  'Transparent
  368.       Caption         =   "MarkOuterRadius:"
  369.       FontBold        =   0   'False
  370.       FontItalic      =   0   'False
  371.       FontName        =   "MS Sans Serif"
  372.       FontSize        =   8.25
  373.       FontStrikethru  =   0   'False
  374.       FontUnderline   =   0   'False
  375.       Height          =   195
  376.       Index           =   1
  377.       Left            =   3750
  378.       TabIndex        =   30
  379.       Top             =   1980
  380.       Width           =   1290
  381.    End
  382.    Begin Label Label1 
  383.       AutoSize        =   -1  'True
  384.       BackStyle       =   0  'Transparent
  385.       Caption         =   "MarkUserDefined: (x,y pair list defines shape )"
  386.       FontBold        =   0   'False
  387.       FontItalic      =   0   'False
  388.       FontName        =   "MS Sans Serif"
  389.       FontSize        =   8.25
  390.       FontStrikethru  =   0   'False
  391.       FontUnderline   =   0   'False
  392.       Height          =   195
  393.       Index           =   4
  394.       Left            =   3840
  395.       TabIndex        =   27
  396.       Top             =   2670
  397.       Width           =   3225
  398.    End
  399.    Begin Label Label2 
  400.       Alignment       =   2  'Center
  401.       AutoSize        =   -1  'True
  402.       BackStyle       =   0  'Transparent
  403.       Caption         =   " "
  404.       Height          =   195
  405.       Index           =   5
  406.       Left            =   1890
  407.       TabIndex        =   5
  408.       Top             =   3450
  409.       Width           =   120
  410.    End
  411.    Begin Label Label2 
  412.       Alignment       =   2  'Center
  413.       AutoSize        =   -1  'True
  414.       BackStyle       =   0  'Transparent
  415.       Caption         =   " "
  416.       Height          =   195
  417.       Index           =   4
  418.       Left            =   1950
  419.       TabIndex        =   25
  420.       Top             =   3840
  421.       Width           =   90
  422.    End
  423.    Begin Label Label2 
  424.       Alignment       =   2  'Center
  425.       AutoSize        =   -1  'True
  426.       BackStyle       =   0  'Transparent
  427.       Caption         =   " "
  428.       Height          =   195
  429.       Index           =   3
  430.       Left            =   1860
  431.       TabIndex        =   21
  432.       Top             =   3450
  433.       Width           =   210
  434.    End
  435.    Begin Label Label1 
  436.       Alignment       =   1  'Right Justify
  437.       AutoSize        =   -1  'True
  438.       BackStyle       =   0  'Transparent
  439.       Caption         =   "MarkInnerRadius:"
  440.       FontBold        =   0   'False
  441.       FontItalic      =   0   'False
  442.       FontName        =   "MS Sans Serif"
  443.       FontSize        =   8.25
  444.       FontStrikethru  =   0   'False
  445.       FontUnderline   =   0   'False
  446.       Height          =   195
  447.       Index           =   0
  448.       Left            =   3780
  449.       TabIndex        =   2
  450.       Top             =   1680
  451.       Width           =   1260
  452.    End
  453.    Begin Label Label2 
  454.       Alignment       =   2  'Center
  455.       AutoSize        =   -1  'True
  456.       BackStyle       =   0  'Transparent
  457.       Caption         =   " "
  458.       Height          =   195
  459.       Index           =   0
  460.       Left            =   7800
  461.       TabIndex        =   26
  462.       Top             =   1680
  463.       Width           =   450
  464.    End
  465. End
  466.  
  467. Sub Colors_Click (Index As Integer)
  468.  
  469.     selector1.MarkColor = colors(Index).BackColor
  470.  
  471. End Sub
  472.  
  473. Sub Form_Load ()
  474.  
  475.     hscroll1(0) = selector1.MarkInnerRadius * 100
  476.     hscroll1(1) = selector1.MarkOuterRadius * 100
  477.     hscroll1(2) = selector1.MarkWidth * 100
  478.     option1(selector1.MarkStyle) = True
  479.     text1 = selector1.MarkUserDefined
  480.     selector1.KnobStyle = 2
  481.     option2(2) = True
  482.     selector1.MarkStyle = 2
  483.     option1(2) = True
  484.     
  485.     For i% = 0 To 2
  486.         label2(i%) = hscroll1(i%) / 100
  487.     Next
  488.  
  489. End Sub
  490.  
  491. Sub HScroll1_Change (Index As Integer)
  492.  
  493.     Select Case Index
  494.         Case 0
  495.             selector1.MarkInnerRadius = hscroll1(0) / 100
  496.             label2(0) = hscroll1(0) / 100
  497.         Case 1
  498.             selector1.MarkOuterRadius = hscroll1(1) / 100
  499.             label2(1) = hscroll1(1) / 100
  500.         Case 2
  501.             selector1.MarkWidth = hscroll1(2) / 100
  502.             label2(2) = hscroll1(2) / 100
  503.     End Select
  504.  
  505. End Sub
  506.  
  507. Sub HScroll1_Scroll (Index As Integer)
  508.  
  509.     Select Case Index
  510.         Case 0
  511.             selector1.MarkInnerRadius = hscroll1(0) / 100
  512.             label2(0) = hscroll1(0) / 100
  513.         Case 1
  514.             selector1.MarkOuterRadius = hscroll1(1) / 100
  515.             label2(1) = hscroll1(1) / 100
  516.         Case 2
  517.             selector1.MarkWidth = hscroll1(2) / 100
  518.             label2(2) = hscroll1(2) / 100
  519.     End Select
  520.  
  521. End Sub
  522.  
  523. Sub Option1_Click (Index As Integer)
  524.  
  525.     selector1.MarkStyle = Index
  526.  
  527. End Sub
  528.  
  529. Sub Option2_Click (Index As Integer)
  530.  
  531.     selector1.KnobStyle = Index
  532.  
  533. End Sub
  534.  
  535. Sub Text1_Change ()
  536.     
  537.     selector1.MarkUserDefined = text1
  538.  
  539. End Sub
  540.  
  541.